public class Demo4 {
    public static void main(String[] args) throws InterruptedException {
            Thread a = new Thread(()->{
                System.out.println("a");
            });

            Thread b = new Thread(()->{
                System.out.print("b");
            });

            Thread c = new Thread(()->{
                System.out.print("c");
            });

            c.start();
            c.join();

            b.start();
            b.join();

            a.start();
            a.join();
    }
}
